﻿using Product.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Text;

namespace Product.EntityFrameworkCore.PO
{
    public class SpuPo
    {
        public SpuPo() { }

        public string Id { get; set; }

        /// <summary>
        /// 版本号
        /// </summary>
        public long Version { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string SpuName { get; set; }

        /// <summary>
        /// 图片
        /// </summary>
        public string PicUrl { get; set; }

        /// <summary>
        /// 分类Id
        /// </summary>
        public string CategoryId { get; set; }

        /// <summary>
        /// 品牌Id
        /// </summary>
        public string BrandId { get; set; }

        /// <summary>
        /// 销售状态
        /// </summary>
        public SalesStatus SalesStatus { get; set; }

        /// <summary>
        /// Specification
        /// </summary>
        public virtual List<SpecificationPo> SpecificationList { get; set; }

        /// <summary>
        /// Sku
        /// </summary>
        public virtual List<SkuPo> SkuList { get; set; }

        /// <summary>
        /// 分类
        /// </summary>
        public virtual CategoryPo Category { get; set; }

        /// <summary>
        /// 品牌
        /// </summary>
        public virtual BrandPo Brand { get; set; }
    }
}
